<%@ page language="java" contentType="text/html; charset=utf-8"%>
<%@ taglib prefix="m" uri="/cutm_tags"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<html>
<head>
<title>我的桌面</title>
<script type="text/javascript" src="<s:url value="/common/scripts/jquery.portal.js" />"></script>
<script type="text/javascript">
$(function(){
	$('#portal').portal({
		border:false,
		fit:true,
		resize : true
	});
	$('#aduittabs,#ourstabs').tabs();
});
</script>
<style type="text/css">
.portal{padding:0;margin:0;border:1px solid #99BBE8;overflow:auto;}
.portal-noborder{border:0;}
.portal-panel{margin-bottom:10px;}
.portal-column-td{vertical-align:top;}	
.portal-column{padding:10px 0 10px 10px;overflow:hidden;}
.portal-proxy{opacity:0.6;filter:alpha(opacity=60);}
.portal-spacer{border:3px dashed #eee;margin-bottom:10px;}
.title{font-size:16px;font-weight:bold;padding:20px 10px;background:#eee;overflow:hidden;border-bottom:1px solid #ccc;}
.t-list{padding:5px;}
</style>
</head>
<body>
<div class="tabs-header" style="height: 20px;border-bottom: 1px solid #8DB2E3;"><marquee scrollamount="3" direction="left" behavior="scroll"><s:property value="messages" escape="false" /></marquee></div>
<div id="portal" style="position:relative">
	<div style="width: 55%;">
		<div border="false" style="height:200px;padding:1px;">
			<div id="aduittabs">
				<div title="待审稿件(<s:property value="model.manuscripts.size" />)" selected="true" style="height:165px;padding:1px;">
					<table class="easyui-datagrid" style="width:100%;height:auto;" fit="true" border="false" singleSelect="true">
						<thead>
							<tr>
								<th field="id" width="250">名称</th>
								<th field="user" width="100">投稿人</th>
								<th field="level" width="100">级别</th>
								<th field="date" width="80">日期</th>
							</tr>
						</thead>
						<tbody>
							<s:iterator value="model.manuscripts">
								<tr>
									<td><a href="<s:url action="manuscript/EditManuscript!toAudit"/>?manuscript.id=${id}" target="_blank"><s:property value="title" /></a></td>
									<td><s:property value="user.name" /></td>
									<td><s:if test="auditZt==1">一审</s:if><s:elseif test="auditZt==2">二审</s:elseif><s:elseif test="auditZt==3">三审</s:elseif></td>
									<td><s:date	name="createDate" format="yyyy-MM-dd" /></td>
								</tr>
							</s:iterator>
						</tbody>
					</table>
				</div>
				<div title="待审编辑方案(<s:property value="model.solutions.size" />)" style="height:165px;padding:1px;">
					<table class="easyui-datagrid"  fit="true" border="false" singleSelect="true">
						<thead>
							<tr>
								<th field="id" width="250">名称</th>
								<th field="user" width="100">期数</th>
								<th field="level" width="100">出版日期</th>
							</tr>
						</thead>
						<tbody>
							<s:iterator value="model.solutions">
								<tr>
									<td><m:permiss permiss="SOLUTION_REVIEW1">
											<s:if test="status==0 || status==-1 ">
												<a href="<s:url value="/solution/EditSolution!toReview" />?level=1&solution.id=${id}" target="_blank"> <s:property value="name" /></a>
											</s:if>
										</m:permiss> <m:permiss permiss="SOLUTION_REVIEW2">
											<s:if test="status==1">
												<a href="<s:url value="/solution/EditSolution!toReview" />?level=2&solution.id=${id}" target="_blank"> <s:property value="name" /></a>
											</s:if>
										</m:permiss> <m:permiss permiss="SOLUTION_REVIEW3">
											<s:if test="status==2">
												<a href="<s:url value="/solution/EditSolution!toReview" />?level=3&solution.id=${id}" target="_blank"> <s:property value="name" /></a>
											</s:if>
										</m:permiss>
									</td>
									<td><s:property value="issue" /></td>
									<td><s:date	name="date" format="yyyy-MM-dd" /></td>
								</tr>
							</s:iterator>
						</tbody>
					</table>
				</div>
				<div title="待审外出申请(<s:property value="model.outerApps.size" />)" style="height:165px;padding:1px;">
					<table class="easyui-datagrid" style="width:100%;height:auto;" fit="true" border="false" singleSelect="true" idField="id">
						<thead>
							<tr>
								<th field="theme" width="260">主题</th>
								<th field="date" width="180">日期</th>
							</tr>
						</thead>
						<tbody>
						<s:iterator value="model.outerApps">
							<tr>
								<td><a href="<s:url action="out/EditOut!toAduit"/>?outerApp.id=${id}" target="_blank"><s:property value="theme" /></a></td>
							<td><s:date name="date" format="yyyy-MM-dd"/></td>
							</tr>
						</s:iterator>
						</tbody>
					</table>
				</div>
			</div>
		</div>
		<div border="false" style="height:200px;padding:1px;">
			<div id="ourstabs">
				<div title="我的草稿(<s:property value="model.drafts.size" />)" style="height:165px;padding:1px;">
					<table class="easyui-datagrid" fit="true" border="false" singleSelect="true" idField="id">
						<thead>
							<tr>
								<th field="f1" width="400">标题</th>
							</tr>
						</thead>
						<tbody>
						<s:iterator value="model.drafts">
							<tr>
							<td><a href="<s:url action="manuscript/EditManuscript!toEdit"/>?manuscript.id=${id}" target="_blank"><s:property value="title" /></a></td>
							</tr>
						</s:iterator>
						</tbody>
					</table>
				</div>
				<div title="退回的稿件(<s:property value="model.backs.size" />)" style="height:165px;padding:1px;">
					<table class="easyui-datagrid" style="width:100%;height:auto" fit="true" border="false" singleSelect="true" idField="id">
						<thead>
							<tr>
								<th field="f2" width="400">标题</th>
							</tr>
						</thead>
						<tbody>
						<s:iterator value="model.backs">
							<tr><td>
								<a href="<s:url action="manuscript/EditManuscript!toEdit"/>?manuscript.id=${id}"	target="_blank"><s:property value="title" /></a>
							</td></tr>
						</s:iterator>
						</tbody>
					</table>			
				</div>
				<div title="外出日程(<s:property value="model.myoutApps.size" />)" style="height:165px;padding:1px;">
					<table class="easyui-datagrid" style="width:100%;height:auto" fit="true" border="false" singleSelect="true" idField="id">
						<thead>
							<tr>
								<th field=""title width="260">标题</th>
							</tr>
						</thead>
						<tbody>
						<s:iterator value="model.myoutApps">
							<tr><td>
								<a href="<s:url action="out/EditOut!view"/>?outerApp.id=${id}"	target="_blank"><s:property value="theme" /></a>
							</td></tr>
						</s:iterator>
						</tbody>
					</table>
				</div>
			</div>
		</div>
	</div>
	<div style="width: 45%;">
		<div title="未读邮件" style="height:200px;padding:1px;">
			<table class="easyui-datagrid" fit="true" border="false" singleSelect="true" idField="id">
				<thead>
					<tr>
						<th field="id" width="250">标题</th>
						<th field="date" width="80" align="center">时间</th>
						<th field="sender" width="50" align="center">发送者</th>
					</tr>
				</thead>
				<tbody>
				<s:iterator value="model.mails">
					<tr><td>
						<a href="<s:url action="mail/ListMail!show"/>?mail.id=${id}" id="n${id }" target="_blank"><s:property value="title" /></a>
					</td><td>
						<s:date name="createDate" format="yyyy-MM-dd"/>
					</td>
					<td><s:property value="sender.name" /></td>
					</tr>
				</s:iterator>
				</tbody>
			</table>
		</div>
		<div title="最新公告" style="height:200px;padding:1px;">
			<table class="easyui-datagrid"  fit="true" border="false" singleSelect="true" idField="id">
				<thead>
					<tr>
						<th field="id" width="280">标题</th>
						<th field="date" width="80" align="center">时间</th>
					</tr>
				</thead>
				<tbody>
				<s:iterator value="model.notices">
					<tr><td>
						<a href="<s:url action="notice/EditNotice!show"/>?notice.id=${id}" target="_blank"><s:property value="title" /></a>
					</td><td>
						<s:date name="createDate" format="yyyy-MM-dd"/>
					</td>
					</tr>
				</s:iterator>
				</tbody>
			</table>
		</div>
	</div>
</div>
</script>
</body>
</html>